<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<body ontouchstart >

	<header class="contHeader">
		<div class="contOHeader" style="z-index:1000;">
			<h1>绑定银行卡</h1>
			<div class="contOHeadBack">
				<a href="javascript:reloadHtml();"><img
					src="${staticPath}/images/back2.png"></a>
			</div>

		</div>
	</header>
	<div class="weui_cell weui_cell_select">
		<div class="weui_cell_bd weui_cell_primary">
			<select class="weui_select" id="bankId">
				<option value="0" <c:if test="${bankId==0 }">selected=""</c:if> >发卡银行：</option>
				<c:forEach items="${bankList}" var="bank">
					<option value="${bank.id}"  <c:if test="${bankId==bank.id }">selected=""</c:if>>${bank.name}</option>
				</c:forEach>
			</select>
		</div>
	</div>
	<input type="hidden" value="${bankcard.id}" id="id"/>
	<div class="weui_cells weui_cells_form">
		<div class="weui_cell zc1">
			<div class="weui_cell_hd">
				<label class="weui_label" style="width: 130px; color: #333;">开户支行：</label>
			</div>
			<div class="weui_cell_bd weui_cell_primary">
				<input id='branch' class="weui_input" type="text"
					placeholder="请输入开户支行" value="${bankcard.branch}">
			</div>
		</div>
		<div class="weui_cell zc1">
			<div class="weui_cell_hd">
				<label class="weui_label" style="width: 130px; color: #333;">银行卡号：</label>
			</div>
			<div class="weui_cell_bd weui_cell_primary">
				<input id='bankCode' class="weui_input" type="tel"
					placeholder="请输入银行卡号" value="${bankcard.bankCode}">
			</div>
		</div>
		<div class="weui_cell zc1">
			<div class="weui_cell_hd">
				<label class="weui_label" style="width: 130px; color: #333;">银行卡姓名：</label>
			</div>
			<div class="weui_cell_bd weui_cell_primary">
				<input id='cardholder' class="weui_input" type="text" placeholder="请输入银行卡姓名"
					value="${bankcard.cardholder}">
			</div>
		</div>
		<div class="weui_cell weui_cell_warn zc1">
			<div class="weui_cell_hd" style="width: 100%; color: #333;">
				<label class="weui_label"
					style="width: 160px; color: #333; float: left;">设置为默认银行卡：</label> <input
					type="checkbox"
					<c:if test="${bankcard.isDefault==1}">checked</c:if> id="isDefault"
					style="float: right; margin-right: 30px; margin-top: 20px;">
			</div>
		</div>
	</div>
	<div class="tabm">
		<a class="tabright" href="javascript:saveBankcard();" style="width: 100%;">确定</a>
	</div>
</body>